import time
#time.perf_counter_ns()来自官方参考手册的library的time-->函数。P623
#用于检测程序的运行时间。
#2021-05-08  16:48
time1=time.perf_counter_ns()
print('time1',time1)
time.sleep(1)
time2=time.perf_counter_ns()
print('time2',time2)
sub_time=time2-time1
print('sub_time',sub_time/(10**(9)),'\n')


time3=time.perf_counter_ns()
print('time3',time3)
#time.sleep(1)
time4=time.perf_counter_ns()
print('time4',time4)
sub_time=time4-time3
print('sub_time',sub_time/1000000000,'\n')


time5=time.perf_counter_ns()
print('time5',time5)
#time.sleep(1)
time6=time.perf_counter_ns()
print('time6',time6)
sub_time=time6-time5
print('sub_time',sub_time/(10**9),'\n')
